package com.corona.game;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.corona.Game;
import com.corona.game.util.TextureCache;

/* compiled from: Battle.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/PokemonCaughtEvents.class */
class PokemonCaughtEvents extends Action {
    Action displayTextAction;
    public Action.Layer layer = Action.Layer.gui_120;
    public boolean done = false;
    Sprite pokeballSprite = new Sprite(TextureCache.get(Gdx.files.internal("pokeball_wiggleSheet1_color.png")), 24, 0, 12, 12);

    public PokemonCaughtEvents(Game game, Action nextAction) {
        super(new Object[0]);
        this.nextAction = nextAction;
        this.pokeballSprite.setPosition(115.0f, 88.0f);
    }

    @Override // com.corona.game.Action
    public String getCamera() {
        return "gui";
    }

    @Override // com.corona.game.Action
    public Action.Layer getLayer() {
        return this.layer;
    }

    @Override // com.corona.game.Action
    public void firstStep(Game game) {
        game.insertAction(this.nextAction);
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        this.pokeballSprite.draw(game.uiBatch);
        if (this.done) {
            game.battle.oppPokemon.sprite.setAlpha(1.0f);
            game.actionStack.remove(this);
        }
    }
}
